package com.heihu577;

import com.heihu577.bean.enums.FxmlResources;
import com.heihu577.bean.enums.NamingsConfig;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Stage;

public class MyApp extends Application {
    public static void main(String[] args) {
        System.setProperty("file.encoding", "UTF-8");
        launch(args);
    }

//    @Override
//    public void init() throws Exception {
//
//    }

    @Override
    public void start(Stage primaryStage) throws Exception {
        Pane pane = FXMLLoader.load(FxmlResources.MYAPP.getUrl());
        Scene scene = new Scene(pane);
        primaryStage.setTitle(NamingsConfig.MAIN_TITLE.name);
        primaryStage.setScene(scene);
        primaryStage.show();
    }
}
